x86/vtd: Drop struct qi_ctrl
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Nov 2018 14:57:14 +0000 (14:57 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Sep 2019 10:26:26 +0000 (11:26 +0100)
commit8cfc407fba2b8b924a37c01ebba96d66c48628ab
tree372a2b3a6fcc3fde076542e23113c440cd26c48f
parentc697330d60252b921d4068315fdc98246606a921
x86/vtd: Drop struct qi_ctrl

It is unclear why this abstraction exists, but iommu_qi_ctrl() returns
possibly NULL and every user unconditionally dereferences the result.  In
practice, I can't spot a path where iommu is NULL, so I think it is mostly
dead.

Move the sole member into struct vtd_iommu, and delete iommu_qi_ctrl().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/qinval.c